package org.csmzxy.class2333;

class Student1 {
    private String name;
    private int age;
    public Student1(){
        System.out.print("实例化了一个新的Student对象");
    }
    public Student1(String name, int age){
        this();  //调用无参构造方法
        this.name = name;
        this.age = age;
    }
    public void print(){
        System.out.print("我是" + name + ",年龄" + age); ;
    }
}